import request from "../utils/axios";


export const signListclick = (params: object) => {
  return request({
    url: "/maths/save",
    method: "post",
    params,
  });
};
export const deleteclick = (params: object) => {
  return request({
    url: "/maths/delete",
    method: "post",
    params,
  });
};







// 试题管理列表
export const questionsList = (params: object) => {
  return request({
    url: "/question/questionList",
    method: "post",
    params,
  });
};

// 试题管理列表 ===> 删除
export const questionsDelete = (params: object) => {
  return request({
    url: "/question/deleteQuestion",
    method: "post",
    params,
  });
};


// 试题管理列表 ===> 新增
export const questionsAdd = (data: object) => {
  return request({
    url: "/question/addQuestion",
    method: "post",
    data,
  });
};

// 试题管理列表 ===> 修改
export const questionsEdit = (data: object) => {
  return request({
    url: "/question/editQuestion",
    method: "post",
    data,
  });
};

// 报名管理列表
export const signList = (params: object) => {
  return request({
    url: "/contest/infoList",
    method: "post",
    params,
  });
};


// 测验结果列表
export const resultList = (params: object) => {
  return request({
    url: "/answer/list",
    method: "post",
    params,
  });
};



// 查看题目
export const resultTopic = (params: object) => {
  return request({
    url: "/answer/topic",
    method: "post",
    params,
  });
};


// 查看结果
export const resultInfo = (params: object) => {
  return request({
    url: "/answer/info",
    method: "post",
    params,
  });
};

// 判题保存
export const resultSave= (data: object) => {
  return request({
    url: "/answer/audit",
    method: "post",
    data,
  });
};

// 专题管理

export const topicList = (params: object) => {
  return request({
    url: "/topic/list",
    method: "post",
    params,
  });
};

// 专题管理==> 删除

export const topicDelete = (params: object) => {
  return request({
    url: "/topic/delete",
    method: "post",
    params,
  });
};

export const topicSave = (data: object) => {
  return request({
    url: "/topic/save",
    method: "post",
    data,
  });
};

